﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;


namespace IHISCETeim.BLL
{
    public class PartsCatheringController:BaseController
    {
        public static int Add(PartsCatheringInfo obj)
        {
            return PartsCatheringDAL.Add(obj);
        }
        public static bool Delete(int Cid)
        {
            return PartsCatheringDAL.Delete(Cid);
        }
        public static PartsCatheringInfo GetList(int Cid)
        {
            PartsCatheringInfo obj = CBO.FillObject<PartsCatheringInfo>(PartsCatheringDAL.GetList(Cid));
            if (obj == null)
                obj = new PartsCatheringInfo();
            return obj;
        }
        public static DataTableCollection GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return PartsCatheringDAL.GetPagination(whereSql, PageIndex, PageSize, Sort, ref TotalCount);
        }
        public static bool Update(PartsCatheringInfo obj)
        {
            return PartsCatheringDAL.Update(obj);
        }

    }
}
